package com.example.jooqdemo.config.jooq;

import org.jooq.Transaction;
import org.springframework.transaction.TransactionStatus;

/**
 * @Description: java类作用描述
 * @Author: czw
 * @date: 2018/4/27
 */
public class SpringTransaction implements Transaction {
    // Based on the jOOQ-spring-example from https://github.com/jOOQ/jOOQ
    private final TransactionStatus transactionStatus;
    SpringTransaction(TransactionStatus transactionStatus) {
        this.transactionStatus = transactionStatus;
    }
    public TransactionStatus getTxStatus() {
        return this.transactionStatus;
    }
}